//
//  ExtraPeriodCell.m
//  TourDeGarde
//
//  Created by Guillaume SOURDRILLE on 15/05/12.
//  Copyright (c) 2012 Astek. All rights reserved.
//

#import "ExtraPeriodCell.h"

@implementation ExtraPeriodCell
@synthesize nameLabel;
@synthesize beginDateLabel;
@synthesize endDateLabel;
@synthesize fromLabel;
@synthesize toLabel;
@synthesize isCustodyLabel;


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



-(void) showDetails{
    BOOL hidden = NO;
    beginDateLabel.hidden = hidden;
    endDateLabel.hidden = hidden;
    fromLabel.hidden = hidden;
    toLabel.hidden = hidden;
    isCustodyLabel.hidden = hidden;
}
-(void) hideDetails{
    BOOL hidden = TRUE;
    beginDateLabel.hidden = hidden;
    endDateLabel.hidden = hidden;
    fromLabel.hidden = hidden;
    toLabel.hidden = hidden;
    isCustodyLabel.hidden = hidden;
}

@end
